package com.lilili.ssh.book.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lilili.ssh.book.dao.BookDao;
import com.lilili.ssh.book.model.Book;
import com.lilili.ssh.book.service.BookManager;
@Service
public class BookManagerImpl implements BookManager{
	@Autowired
	BookDao dao;
	
	public void saveBook(Book book){
		dao.saveBook(book);
	}
	
	public void removeBook(String id){
		dao.removeBook(id);
	}
	
	public Book getBook(String id){
		return dao.getBook(id);
	}
	
	public List getBookList(Book book){
		return dao.getBookList(book);
	}
	
	public List getBookList(){
		return dao.getBookList();
	}

}
